var t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) {
    return typeof t;
} : function(t) {
    return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
}, e = "function" == typeof Symbol && "symbol" == t(Symbol.iterator) ? function(e) {
    return void 0 === e ? "undefined" : t(e);
} : function(e) {
    return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : void 0 === e ? "undefined" : t(e);
};

!function(t, n) {
    "object" == ("undefined" == typeof exports ? "undefined" : e(exports)) && "undefined" != typeof module ? module.exports = n() : "function" == typeof define && define.amd ? define(n) : (void 0).Ald = n();
}(0, function() {
    function t() {
        "function" == typeof gt && "" === B && gt().then(function(t) {
            28 === t.length && (B = t, wx.setStorageSync("aldstat_op", t));
        });
    }
    function n(t) {
        this.app = t;
    }
    function o(t) {
        var n = {};
        return "Boolean Number String Function Array Date RegExp Object Error Symbol".split(" ").forEach(function(t, e) {
            n["[object " + t + "]"] = t.toLowerCase();
        }), null == t ? t : "object" == (void 0 === t ? "undefined" : e(t)) || "function" == typeof t ? n[function(t) {
            return Object.prototype.toString.call(t);
        }.call(t)] || "object" : void 0 === t ? "undefined" : e(t);
    }
    function r(t) {
        C = v(), J = t, ct = t.scene, this.aldstat = new n(this);
    }
    function a(e) {
        t();
        var n;
        if (n = e.scene != ct, ct = e.scene, Q = 0, J = e, G = e.query.ald_share_src, z = e.query.aldsrc || "", 
        F = e.query.ald_share_src, at || it || pt || (V = !1), at = !1, (0 !== U && Date.now() - U > 3e4 || n) && (it || (R = v(), 
        E = Date.now(), ht = 0)), 0 !== U && Date.now() - U < 3e4 && (tt = !0), e.query.ald_share_src && "1044" == e.scene && e.shareTicket ? wx.getShareInfo({
            shareTicket: e.shareTicket,
            success: function(t) {
                $ = t, I("event", "ald_share_click", JSON.stringify(t));
            }
        }) : e.query.ald_share_src && I("event", "ald_share_click", 1), "" === X && wx.getSetting({
            withCredentials: !0,
            success: function(t) {
                t.authSetting["scope.userInfo"] && ut && (ut = !1, wx.getUserInfo({
                    withCredentials: !0,
                    success: function(t) {
                        var e = m();
                        X = t, e.ufo = S(t);
                        try {
                            lt = S(t).userInfo.gender;
                        } catch (t) {
                            lt = "";
                        }
                        T = y(t.userInfo.avatarUrl.split("/")), w(e);
                    }
                }));
            }
        }), b("app", "show"), "" === B) {
            var o = wx.getAccountInfoSync().miniProgram.appId;
            wx.login({
                success: function(t) {
                    wx.request({
                        url: "https://log.aldwx.com/authorize/mini_program_openid",
                        data: {
                            ai: o,
                            uuid: K,
                            jc: t.code,
                            reqid: "1"
                        },
                        success: function(t) {
                            t.data.code || (B = t.data.data.openid, wx.setStorageSync("aldstat_op", t.data.data.openid));
                        }
                    });
                },
                fail: function(t) {}
            });
        }
    }
    function i() {
        t(), U = Date.now(), "" === X && wx.getSetting({
            success: function(t) {
                t.authSetting["scope.userInfo"] && ut && (ut = !1, wx.getUserInfo({
                    withCredentials: !0,
                    success: function(t) {
                        X = t, T = y(t.userInfo.avatarUrl.split("/"));
                        var e = m();
                        e.ufo = S(t);
                        try {
                            lt = S(t).userInfo.gender;
                        } catch (t) {
                            lt = "";
                        }
                        w(e);
                    }
                }));
            }
        }), b("app", "hide");
    }
    function c(t) {
        W++, I("event", "ald_error_message", t);
    }
    function s(t) {
        ot = t;
    }
    function u() {
        ft = Date.now(), et = L ? this.$mp.page.route : this.route, "" === X && wx.getSetting({
            success: function(t) {
                t.authSetting["scope.userInfo"] && ut && (ut = !1, wx.getUserInfo({
                    withCredentials: !0,
                    success: function(t) {
                        X = t, T = y(t.userInfo.avatarUrl.split("/"));
                        var e = m();
                        e.ufo = S(t);
                        try {
                            lt = S(t).userInfo.gender;
                        } catch (t) {
                            lt = "";
                        }
                        w(e);
                    }
                }));
            }
        }), O("page", "show"), tt = !1;
    }
    function l() {
        nt = et, ht = Date.now() - ft;
    }
    function d() {
        nt = et, ht = Date.now() - ft;
    }
    function f() {
        I("event", "ald_pulldownrefresh", 1);
    }
    function h() {
        I("event", "ald_reachbottom", 1);
    }
    function p(t) {
        it = !0;
        var e = x(t.path), n = {};
        for (var o in J.query) "ald_share_src" !== o && "ald_share_op" !== o || (n[o] = J.query[o]);
        var r = "";
        if (r = -1 == t.path.indexOf("?") ? t.path + "?" : t.path.substr(0, t.path.indexOf("?")) + "?", 
        "" !== e) for (var o in e) n[o] = e[o];
        n.ald_share_src ? -1 == n.ald_share_src.indexOf(K) && n.ald_share_src.length < 200 && (n.ald_share_src = n.ald_share_src + "," + K) : n.ald_share_src = K, 
        j.useOpen && (n.ald_share_op ? -1 == n.ald_share_op.indexOf(B) && n.ald_share_op.length < 200 && (n.ald_share_op = n.ald_share_op + "," + B) : n.ald_share_op = B);
        for (var a in n) -1 == a.indexOf("ald") && (r += a + "=" + n[a] + "&");
        return t.path = r + (j.useOpen ? "ald_share_op=" + n.ald_share_op + "&" : "") + "ald_share_src=" + n.ald_share_src, 
        I("event", "ald_share_status", t), t;
    }
    function g() {
        function t() {
            return Math.floor(65536 * (1 + Math.random())).toString(16).substring(1);
        }
        return t() + t() + t() + t() + t() + t() + t() + t();
    }
    function w(t) {
        function e() {
            return new Promise(function(e, n) {
                var o = {
                    AldStat: "MiniApp-Stat",
                    se: H || "",
                    op: B || "",
                    img: T
                };
                "" === k || (o.ai = k), wx.request({
                    url: "https://" + N + ".aldwx.com/d.html",
                    data: t,
                    header: o,
                    method: "GET",
                    success: function(t) {
                        e(200 == t.statusCode ? "" : "status error");
                    },
                    fail: function() {
                        e("fail");
                    }
                });
            });
        }
        Q++, t.at = R, t.uu = K, t.v = P, t.ak = j.app_key.replace(/(\t)|(\s)/g, ""), t.wsr = J, 
        t.ifo = V, t.rq_c = Q, t.ls = C, t.te = M, t.et = Date.now(), t.st = Date.now(), 
        t.ge = lt, j.useOpen ? "" === B ? st.push(e) : (wx.Queue.push(e), st.concat()) : wx.Queue.push(e);
    }
    function m() {
        var t = {};
        for (var e in Y) t[e] = Y[e];
        return t;
    }
    function y(t) {
        for (var e = "", n = 0; n < t.length; n++) t[n].length > e.length && (e = t[n]);
        return e;
    }
    function v() {
        return "" + Date.now() + Math.floor(1e7 * Math.random());
    }
    function S(t) {
        var e = {};
        for (var n in t) "rawData" != n && "errMsg" != n && (e[n] = t[n]);
        return e;
    }
    function x(t) {
        if (-1 == t.indexOf("?")) return "";
        var e = {};
        return t.split("?")[1].split("&").forEach(function(t) {
            var n = t.split("=")[1];
            e[t.split("=")[0]] = n;
        }), e;
    }
    function _(t) {
        for (var n in t) if ("object" == e(t[n]) && null !== t[n]) return !0;
        return !1;
    }
    function b(t, e) {
        var n = m();
        n.ev = t, n.life = e, n.ec = W, n.dr = Date.now() - E, "show" == e && (n.uo = j.useOpen), 
        z && (n.qr = z, n.sr = z), G && (n.usr = G), w(n);
    }
    function O(t, e) {
        var n = m();
        n.ev = t, n.life = e, n.pp = et, n.pc = nt, n.dr = Date.now() - E, (it || pt) && (n.so = 1), 
        pt = !1, it = !1, ot && "{}" != JSON.stringify(ot) && (n.ag = ot), z && (n.qr = z, 
        n.sr = z), G && (n.usr = G), tt && (n.ps = 1), Z ? n.pdr = ht : (rt = et, Z = !0, 
        n.ifp = Z, n.fp = et, n.pdr = 0), w(n);
    }
    function I(t, e, n) {
        var o = m();
        o.ev = t, o.tp = e, o.dr = Date.now() - E, n && (o.ct = n), w(o);
    }
    function D(t, e, n) {
        if (t[e]) {
            var o = t[e];
            t[e] = function(t) {
                n.call(this, t, e), o.call(this, t);
            };
        } else t[e] = function(t) {
            n.call(this, t, e);
        };
    }
    function q(t) {
        var e = {};
        for (var n in t) "onLaunch" !== n && "onShow" !== n && "onHide" !== n && "onError" !== n && (e[n] = t[n]);
        return e.onLaunch = function(e) {
            r.call(this, e), "function" == typeof t.onLaunch && t.onLaunch.call(this, e);
        }, e.onShow = function(e) {
            a.call(this, e), t.onShow && "function" == typeof t.onShow && t.onShow.call(this, e);
        }, e.onHide = function() {
            i.call(this), t.onHide && "function" == typeof t.onHide && t.onHide.call(this);
        }, e.onError = function(e) {
            c.call(this, e), t.onError && "function" == typeof t.onError && t.onError.call(this, e);
        }, e;
    }
    function A(t) {
        var e = {};
        for (var n in t) "onLoad" !== n && "onShow" !== n && "onHide" !== n && "onUnload" !== n && "onPullDownRefresh" !== n && "onReachBottom" !== n && "onShareAppMessage" !== n && (e[n] = t[n]);
        return e.onLoad = function(e) {
            s.call(this, e), "function" == typeof t.onLoad && t.onLoad.call(this, e);
        }, e.onShow = function(e) {
            u.call(this), "function" == typeof t.onShow && t.onShow.call(this, e);
        }, e.onHide = function(e) {
            l.call(this), "function" == typeof t.onHide && t.onHide.call(this, e);
        }, e.onUnload = function(e) {
            d.call(this), "function" == typeof t.onUnload && t.onUnload.call(this, e);
        }, e.onReachBottom = function(e) {
            h(), t.onReachBottom && "function" == typeof t.onReachBottom && t.onReachBottom.call(this, e);
        }, e.onPullDownRefresh = function(e) {
            f(), t.onPullDownRefresh && "function" == typeof t.onPullDownRefresh && t.onPullDownRefresh.call(this, e);
        }, t.onShareAppMessage && "function" == typeof t.onShareAppMessage && (e.onShareAppMessage = function(e) {
            var n = t.onShareAppMessage.call(this, e);
            return void 0 === n ? (n = {}, n.path = this.route) : void 0 === n.path && (n.path = this.route), 
            p.call(this, n);
        }), e;
    }
    var j = require("./ald-stat-conf");
    void 0 === wx.Queue && (wx.Queue = new function() {
        this.concurrency = 4, this.queue = [], this.tasks = [], this.activeCount = 0;
        var t = this;
        this.push = function(e) {
            this.tasks.push(new Promise(function(n, o) {
                var r = function() {
                    t.activeCount++, e().then(function(t) {
                        n(t);
                    }).then(function() {
                        t.next();
                    });
                };
                t.activeCount < t.concurrency ? r() : t.queue.push(r);
            }));
        }, this.all = function() {
            return Promise.all(this.tasks);
        }, this.next = function() {
            t.activeCount--, t.queue.length > 0 && t.queue.shift()();
        };
    }(), wx.Queue.all()), "" === j.app_key && console.error("请在ald-stat-conf.js文件中填写小程序统计/广告监测平台创建小程序后生成的app_key，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南！"), 
    j.useOpen && console.warn("提示：开启了useOpen配置后，如果不上传用户OpendID则不会上报数据，上传方式：http://doc.aldwx.com 小程序统计/广告监测平台-快速接入指南-上传OpenID！");
    var P = "7.4.0", N = "log", M = "wx", k = void 0 === wx.getAccountInfoSync ? "" : wx.getAccountInfoSync().miniProgram.appId.split("").map(function(t) {
        return t.charCodeAt(0) + 9;
    }).join("-"), L = !1, R = v(), C = "", E = Date.now(), U = 0, H = "", B = function() {
        var t = "";
        try {
            t = wx.getStorageSync("aldstat_op");
        } catch (t) {}
        return t;
    }(), T = "", Q = 0, J = "", V = "", K = function() {
        var t = "";
        try {
            t = wx.getStorageSync("aldstat_uuid");
        } catch (e) {
            t = "uuid_getstoragesync";
        }
        if (t) V = !1; else {
            t = g();
            try {
                wx.setStorageSync("aldstat_uuid", t), V = !0;
            } catch (t) {
                wx.setStorageSync("aldstat_uuid", "uuid_getstoragesync");
            }
        }
        return t;
    }(), G = "", z = "", F = "", W = 0, $ = "", X = "", Y = {}, Z = !1, tt = !1, et = "", nt = "", ot = "", rt = "", at = !0, it = !1, ct = "", st = new function() {
        this.request = [], this.updata = !1, this.push = function(e) {
            this.request.length >= 8 && !this.updata && (this.updata = !0, t()), this.request.length >= 10 ? (this.request.shift()().then(function(t) {}).catch(function(t) {}), 
            this.request.push(e)) : this.request.push(e);
        }, this.concat = function() {
            this.request.map(function(t) {
                wx.Queue.push(t);
            }), this.request = [];
        };
    }(), ut = !0, lt = "", dt = [ "aldVisit", "aldPayOrder" ], ft = 0, ht = 0, pt = !1;
    [ {
        name: "scanCode"
    }, {
        name: "chooseAddress"
    }, {
        name: "chooseImage"
    }, {
        name: "previewImage"
    }, {
        name: "chooseInvoiceTitle"
    }, {
        name: "chooseInvoice"
    } ].forEach(function(t) {
        t.fn = wx[t.name];
        var e = t.name;
        try {
            Object.defineProperty(wx, e, {
                get: function() {
                    return pt = !0, t.fn;
                }
            });
        } catch (t) {}
    });
    var gt = "";
    wx.request({
        url: "https://" + N + ".aldwx.com/config/app.json",
        header: {
            AldStat: "MiniApp-Stat"
        },
        method: "GET",
        success: function(t) {
            200 === t.statusCode && (P < t.data.version && console.warn("您的SDK不是最新版本，部分功能不可用，请尽快前往 http://tj.aldwx.com/downSDK 升级"), 
            t.data.warn && console.warn(t.data.warn), t.data.error && console.error(t.data.error));
        }
    }), wx.aldstat = new n("");
    try {
        var wt = wx.getSystemInfoSync();
        Y.br = wt.brand, Y.pm = wt.model, Y.pr = wt.pixelRatio, Y.ww = wt.windowWidth, Y.wh = wt.windowHeight, 
        Y.lang = wt.language, Y.wv = wt.version, Y.wvv = wt.platform, Y.wsdk = wt.SDKVersion, 
        Y.sv = wt.system;
    } catch (t) {}
    wx.getNetworkType({
        success: function(t) {
            Y.nt = t.networkType;
        }
    // }), wx.getSetting({
    //     success: function(t) {
    //         t.authSetting["scope.userLocation"] ? wx.getLocation({
    //             type: "wgs84",
    //             success: function(t) {
    //                 Y.lat = t.latitude, Y.lng = t.longitude, Y.spd = t.speed;
    //             }
    //         }) : j.getLocation && wx.getLocation({
    //             type: "wgs84",
    //             success: function(t) {
    //                 Y.lat = t.latitude, Y.lng = t.longitude, Y.spd = t.speed;
    //             }
    //         });
    //     }
    }), n.prototype.sendEvent = function(t, n) {
        if ("" !== t && "string" == typeof t && t.length <= 255) if ("string" == typeof n && n.length <= 255) I("event", t, n); else if ("object" == (void 0 === n ? "undefined" : e(n))) {
            if (JSON.stringify(n).length >= 255) return void console.error("自定义事件参数不能超过255个字符，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-自定义事件！");
            if (_(n)) return void console.error("事件参数内部只支持Number、String等类型，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-自定义事件！");
            I("event", t, JSON.stringify(n));
        } else void 0 === n ? I("event", t, !1) : console.error("事件参数必须为String、Object类型，且参数长度不能超过255个字符，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-自定义事件！"); else console.error("事件名称必须为String类型且不能超过255个字符，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-自定义事件！");
    }, n.prototype.sendSession = function(t) {
        if ("" !== t && t) {
            H = t;
            var e = m();
            e.tp = "session", e.ct = "session", e.ev = "event", "" === X ? wx.getSetting({
                success: function(t) {
                    t.authSetting["scope.userInfo"] ? wx.getUserInfo({
                        success: function(t) {
                            e.ufo = S(t);
                            try {
                                lt = S(t).userInfo.gender;
                            } catch (t) {
                                lt = "";
                            }
                            T = y(t.userInfo.avatarUrl.split("/")), "" !== $ && (e.gid = $), w(e);
                        }
                    }) : "" !== $ && (e.gid = $, w(e));
                }
            }) : (e.ufo = X, "" !== $ && (e.gid = $), w(e));
        } else console.error("请传入从后台获取的session_key");
    }, n.prototype.sendOpenid = function(t) {
        if ("" !== t && t && 28 === t.length) {
            B = t, wx.setStorageSync("aldstat_op", t);
            var e = m();
            e.tp = "openid", e.ev = "event", e.ct = "openid", w(e);
        } else console.error("OpenID不符合规则，请参考接入文档 http://doc.aldwx.com 小程序统计/广告监测平台-快速接入指南！");
    }, n.prototype.setOpenid = function(e) {
        "function" == typeof e && (gt = e, t());
    };
    for (var mt = {
        aldVisit: function(t) {
            if ("[object Object]" === Object.prototype.toString.call(t)) {
                var e = t.category, n = t.id, r = t.name;
                e && (0 === n || n) && r ? function(t, e, n) {
                    return "string" !== o(t) || t.length > 32 ? (console.error("category字段(商品类别)只支持String类型，且长度小于32个字符，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-智慧零售分析！"), 
                    !1) : "number" !== o(e) && "string" !== o(e) ? (console.error("id字段(商品唯一id)只支持Number类型和String类型，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-智慧零售分析！"), 
                    !1) : !("string" !== o(n) || n.length > 32) || (console.error("name字段(商品名称)只支持String类型，且长度小于32个字符，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-智慧零售分析！"), 
                    !1);
                }(e, n, r) && I("visit", null, {
                    category: t.category,
                    id: t.id,
                    name: t.name
                }) : console.error("category、id、name为必传字段且数据类型必须符合规则,请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-智慧零售分析！");
            } else console.error("wx.aldVisit()传参不符合规则，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-智慧零售分析！");
        },
        aldPayOrder: function(t) {
            if ("[object Object]" === Object.prototype.toString.call(t)) {
                var e = t.price, n = t.details;
                if ((0 === e || e) && n) {
                    if (function(t, e) {
                        return 1 == t && 1 != t ? (console.error("price字段(付费金额)只支持Number类型和数字字符串，且不能小于0，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-智慧零售分析！"), 
                        !1) : (t = Number(t), "number" !== o(t) || t < 0 || isNaN(t) ? (console.error("price字段(付费金额)只支持Number类型和数字字符串，且不能小于0，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-智慧零售分析！"), 
                        !1) : !("[object Array]" !== Object.prototype.toString.call(e) || e.length < 1) || (console.error("details字段(订单详细信息)为Array类型，且长度不能小于1，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-智慧零售分析！"), 
                        !1));
                    }(e, n)) {
                        for (var r = 0; r < n.length; r++) if (!function(t) {
                            var e = t.amount, n = t.category, r = t.id, a = t.name;
                            return 0 == e ? (console.error("details参数下amount字段值(商品数量)只支持Number类型和数字字符串，且不能小于或等于0，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-智慧零售分析！"), 
                            !1) : e && n && (0 === r || r) && a ? 1 == e && 1 != e ? (console.error("details参数下amount字段值(商品数量)只支持Number类型和数字字符串，且不能小于或等于0，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-智慧零售分析！"), 
                            !1) : (e = Number(e), "number" !== o(e) || e <= 0 || isNaN(e) ? (console.error("details参数下amount字段值(商品数量)只支持Number类型和数字字符串，且不能小于或等于0，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-智慧零售分析！"), 
                            !1) : "number" !== o(r) && "string" !== o(r) ? (console.error("id字段(商品唯一id)只支持Number类型和String类型，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-智慧零售分析！"), 
                            !1) : "string" !== o(n) || n.length > 32 ? (console.error("details参数下category字段值(商品类别)只支持String类型，且长度小于32个字符，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-智慧零售分析！"), 
                            !1) : !("string" !== o(a) || a.length > 32) || (console.error("details参数下name字段值(商品类别)只支持String类型，且长度小于32个字符，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-智慧零售分析！"), 
                            !1)) : (console.error("amount、category、id、name为必传字段且数据类型必须符合规则,请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-智慧零售分析！"), 
                            !1);
                        }(n[r])) return;
                        I("pay", null, {
                            price: t.price,
                            details: t.details
                        });
                    }
                } else console.error("price、details为必传字段且数据类型必须符合规则,请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-智慧零售分析！");
            } else console.error("wx.aldPayOrder()传参不符合规则，请参考接入文档 http://doc.aldwx.com 小程序统计平台-快速接入指南-智慧零售分析！");
        }
    }, yt = 0; yt < dt.length; yt++) !function(t, e) {
        Object.defineProperty(wx, t, {
            value: e,
            writable: !1,
            enumerable: !0,
            configurable: !0
        });
    }(dt[yt], mt[dt[yt]]);
    return j.plugin ? {
        App: function(t) {
            function e(e) {
                return t.apply(this, arguments);
            }
            return e.toString = function() {
                return t.toString();
            }, e;
        }(function(t) {
            return App(q(t));
        }),
        Page: function(t) {
            function e(e) {
                return t.apply(this, arguments);
            }
            return e.toString = function() {
                return t.toString();
            }, e;
        }(function(t) {
            return Page(A(t));
        }),
        MpvueApp: function(t) {
            return L = !0, q(t);
        },
        MpvuePage: function(t) {
            return A(t);
        }
    } : void function() {
        var t = App, e = Page, n = Component;
        App = function(e) {
            D(e, "onLaunch", r), D(e, "onShow", a), D(e, "onHide", i), D(e, "onError", c), t(e);
        }, Page = function(t) {
            var n = t.onShareAppMessage;
            D(t, "onLoad", s), D(t, "onUnload", d), D(t, "onShow", u), D(t, "onHide", l), D(t, "onReachBottom", h), 
            D(t, "onPullDownRefresh", f), void 0 !== n && null !== n && (t.onShareAppMessage = function(t) {
                if (void 0 !== n) {
                    var e = n.call(this, t);
                    return void 0 === e ? (e = {}, e.path = et) : void 0 === e.path && (e.path = et), 
                    p(e);
                }
            }), e(t);
        }, Component = function(t) {
            try {
                var e = t.methods.onShareAppMessage;
                D(t.methods, "onLoad", s), D(t.methods, "onUnload", d), D(t.methods, "onShow", u), 
                D(t.methods, "onHide", l), D(t.methods, "onReachBottom", h), D(t.methods, "onPullDownRefresh", f), 
                void 0 !== e && null !== e && (t.methods.onShareAppMessage = function(t) {
                    if (void 0 !== e) {
                        var n = e.call(this, t);
                        return void 0 === n ? (n = {}, n.path = et) : void 0 === n.path && (n.path = et), 
                        p(n);
                    }
                }), n(t);
            } catch (e) {
                n(t);
            }
        };
    }();
});